String dir = Path.GetDirectoryName(fullyQualifiedName); string root = Directory.GetParent(dir).FullName;
path=Y:\Test\Project\bin\Debug ans = String.Join(@"\", path.Split('\\').Skip(3));